<template>
  <div>
    子 {{title}} --- {{lifemsg}}--{{num*2}}--{{objdata.name}}
  </div>
</template>

<script>
export default {
  name: "son",
  data() {
    return {
      
    };
  },
  props:{
      title:[String,Number],
      lifemsg:{
          type:String,
          required:true
      },
      num:{
        type:Number,
        default:5
      },
      objdata:{
        type:Object,
        default:function(){
          return {
            name:"未知",
            age:10
          }
        }
      }
  }
};
</script>

<style scoped>

</style>